package com.ql.gamelogm.dao;

import com.ql.gamelogm.entities.Log;
import com.ql.gamelogm.entities.SearchHistory;
import com.ql.gamelogm.entities.WarnLog;

import java.util.Date;
import java.util.List;

public interface LogDao {
    //日志操作插入
    public void savelog(Log log);
    //日志操作获取
    public List<Log> findAllLogs();
    //搜索历史插入
    public void SaveSearchHistory(SearchHistory searchHistory);
    /*搜索历史获取*/
    public List<SearchHistory> findAllSearchHistory();
    /*告警日志搜索*/
    public List<WarnLog> findAllWarnLog();
    public List<WarnLog> findWarnLogById(int id);
    public boolean saveWarnLog(WarnLog warnLog);
    public boolean updateWaitWarnLogState(int id,WarnLog warnLog);
    public boolean updateAcepWarnLogState(int id,WarnLog warnLog);
    public boolean saveRecentTime( String date);
}
